Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-milestone is "x-login">
It allows to Login to Milestone VMS with a basic user account with administrator role. Allows you to receive both the token for the REST and for the SOAP api with the same credentials.
There aren't inputs. The credentials required for login are entered in the node properties and they are as follows:
JSON object with these properties:
{
tokenREST: "eyJhbOciODSUzI1NiIsImtpZCI6Ij",
tokenSOAP: "TOKEN#85c18f10-e479-44c0- 9af7",
expireREST: 3600,
expireSOAP: 14400,
error: null
}
{
tokenREST: null,
tokenSOAP: null,
expireREST: null,
expireSOAP: null,
error: "invalid_password"
}
The node can receive the parameters described above in the node properties. If they are not present or are wrong, an error is generated for the necessary parameters or the reason why are not correct.